home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Internet
/
Collection of Internet.iso
/
infosrvr
/
dev
/
www_talk.930
/
000526_connolly@pixel.convex.com _Fri Jan 8 19:35:55 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-01-24
|
3KB
Return-Path: <connolly@pixel.convex.com>
Received: from dxmint.cern.ch by nxoc01.cern.ch (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
id AA01737; Fri, 8 Jan 93 19:35:55 MET
Received: by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
id AA29860; Fri, 8 Jan 1993 19:50:54 +0100
Received: from pixel.convex.com by convex.convex.com (5.64/1.35)
id AA03545; Fri, 8 Jan 93 12:50:50 -0600
Received: from localhost by pixel.convex.com (5.64/1.28)
id AA27549; Fri, 8 Jan 93 12:50:49 -0600
Message-Id: <9301081850.AA27549@pixel.convex.com>
To: timbl@nxoc01.cern.ch
Cc: "Thomas A. Fine" <fine@cis.ohio-state.edu>, www-talk@nxoc01.cern.ch
Subject: Re: dealing with new-lines
In-Reply-To: Your message of "Fri, 08 Jan 93 12:09:41 +0100."
<9301081109.AA02814@www3.cern.ch>
Date: Fri, 08 Jan 93 12:50:48 CST
From: Dan Connolly <connolly@pixel.convex.com>
>For what it is worth, the way the CERN implementations are supposed to work is:
>
>This means that any number of newlines
>will only produce one white space character. [It involves a horrid "are we in
>the middle of a word?" flag.]
I don't think this flag is "horrid." It's a pretty normal text-formatting
thing to do.
>Spaces, however, always produce spaces, so multiple spaces will come out as
>multiple spaces.
Is anyone distressed by the situation where some browsers compress
multiple spaces [in typeset paragraphs] into one, and some do not? I'm not.
I'd say "Don't do that" to the fool who put multiple spaces in
his source.
> XMP
>
>Within <XMP> I went all the way and said that from the trailing > of <XMP>
>to the beginning <of </XMP> all data was litteral, including newlines.
>Therefore example sections typically are marked up as
>
><XMP>This is an example line
>
></XMP>
>That was an example. There are no new lines between the <XMP> and the example
>line because the XMP section causes a paragraph break, and the style for the
>normal paragraph specifies a minimum white space after each paragraph.
This looks like sound policy to me.
> Beacuse
>each XMP section is like a black box, any white spce inside it would not be
>seen by the white space management logic which overlaps the white spaces
>required around successive paragraphs, and extra white spce would result.
Unfortunately, this conflicts with the SGML standard. An SGML parser
will report
<XMP>
foo
</XMP>
as
an XMP start tag
the string "foo" [NOT "\nfoo\n"]
an XMP end tag
And so it is, strictly speaking, illegal to treat the above markup
differently from
<XMP>foo</XMP>
I'm not sure how we should resolve this.
> PRE
>
>By the way, I think we agreed (I gave in) that the <PRE> sections would have
>siugnificant newlines. Your manuals, Tom, have <p> as well as newlines, which
>gives double spacing on my browsers. So I tread newlines as newlines in all
>the <PRE> element just as XMP.
This is a situation we need to resolve, one way or another. I'm inclined
to decide that <p> elements are allowed in PRE elements, but they have
no significance. They were put there to cause the old linemode browser
to break the line, so they have always been redundant. So Tim's treatment
of newlines in PRE is correct, but his treatment of <P> there is not
[by this new convention.]
Dan